package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * @author 苏靓仔
 * @version 1.0
 */
public interface DishService {

	void save(DishVO dishVO);

	PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

	void deleteBatch(List<Long> ids);

	DishVO getByIdWithFlavor(Long id);

	void updateWithFlavor(DishDTO dishDTO);

	List<Dish> list(Long categoryID);

	/**
	 * 条件查询菜品和口味
	 * @param dish
	 * @return
	 */
	List<DishVO> listWithFlavor(Dish dish);
}
